var app = getApp();
Page({
    data:{
        url : '',
        shareurl : '',
		siteroot : app.siteInfo.siteroot.replace('app/index.php', ''),uniacid: app.siteInfo.uniacid,
    },
    onLoad:function(options){
        var self = this;
        var url = decodeURIComponent( options.url );
        
        self.setData({
            url : url,
            shareurl : '/zofui_sales/pages/webview/webview?url='+options.url
        });
    },
    onShareAppMessage : function( e ){

        var arr = e.webViewUrl.split("#");
        var shareurl = this.data.shareurl;
        /*if( arr[1] && arr[1].indexOf('zofui_chickenwish') > -1 ) {
            shareurl = '/zofui_sitetemp/pages/webview/webview?url='+arr[1];
        }*/
        
        return {
            title: '',
            path: shareurl,
        }
    },
})